package com.dahua.messageconsumer.service;

import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Getter
@Setter
@Configuration
public class ActiveMqConfig {
    @Value("${spring.artemis.host}")
    private String host;

    @Value("${spring.artemis.port}")
    private String port;

    @Value("${spring.artemis.user}")
    private String user;

    @Value(("${spring.artemis.password}"))
    private String password;

    public String getUrl() {
        return "tcp://" + host + ":" + port;
    }
}
